
const UserService = require('../service/users')

class UserController {
  async login(ctx) {
    let data = await UserService.login(ctx)
    ctx.body = data;
  }
  async register(ctx) {
    let data = await UserService.register(ctx)
    ctx.body = data;
  }
}

module.exports = new UserController